import { Children, lazy } from "react";


const Home=lazy(()=>import('../pages/home/Index'))
const My=lazy(()=>import('../pages/my/Index'))
const Layout=lazy(()=>import('../pages/layout/Index'))
const Login=lazy(()=>import('../pages/login/Index'))
const Login1=lazy(()=>import('../pages/login1/Index'))
const Liebiao=lazy(()=>import('../pages/liebiao/Index'))
const Xiangqing=lazy(()=>import('../pages/xiangqing/Index'))
const Xiaoxi=lazy(()=>import('../pages/xiaoxi/Index'))
const Success=lazy(()=>import('../pages/success/Index'))


const router=[
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/login1",
        element:<Login1></Login1>
    },
    {
        path:"/liebiao",
        element:<Liebiao></Liebiao>
    },
    {
        path:"/xiangqing",
        element:<Xiangqing></Xiangqing>
    },
    {
        path:"/liebiao",
        element:<Liebiao></Liebiao>
    },
    {
        path:"/success",
        element:<Success></Success>
    },
    {
        path:"/",
        element:<Layout></Layout>,
        children:[
            {
                path:'/',
                element:<Home></Home>
            },
            {
                path:'/xiaoxi',
                element:<Xiaoxi></Xiaoxi>
            },
            {
                path:'/my',
                element:<My></My>
            },
        ]
    },
]

export default router







